﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace uTorrentWebAPI.ServiceDefinition
{
    [DataContract(Name = "html", Namespace = "")]
    [XmlRoot]
    [XmlType(TypeName = "html")]
    public class html
    {
        [DataMember]
        [XmlElement]
        public DivTag div { get; set; }

    }

    public class DivTag : IXmlSerializable
    {
        public string id { get; set; }

        public string style { get; set; }

        public string token { get; set; }

        public System.Xml.Schema.XmlSchema GetSchema()
        {
            return null;
        }

        public void ReadXml(System.Xml.XmlReader reader)
        {
            this.id = reader.GetAttribute("id");

            this.style = reader.GetAttribute("style");

            this.token = reader.ReadInnerXml();
        }

        public void WriteXml(System.Xml.XmlWriter writer)
        {

        }
    }
}
